package com.hmall.api.client;


import com.hmall.api.client.fallback.CartClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;

import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

@FeignClient(value = "cart-service",fallbackFactory = CartClientFallbackFactory.class)
public interface CartClient {
    /**
     * 批量删除
     * @param ids
     */
    @DeleteMapping("/carts")
    void removeByItemIds(@RequestParam("ids") Collection<Long> ids);
}
